(
  function () {
    document.addEventListener('DOMContentLoaded', function () {
      const items = document.querySelectorAll('[data-open-url]');
      items.forEach((item) => {
        item.addEventListener('click', function () {
          const url = item.getAttribute('data-open-url');
          if (url) {
            location.href = item.getAttribute('data-open-url');
          }

        });
      });
    });
  }
)();